home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / HPXL / PackageRoutines.h < prev    next >
Encoding:
Text File  |  1996-03-20  |  2.7 KB  |  79 lines  |  [TEXT/MPS ]

  1. /* ==========================================================================================
  2.  
  3.     HEADER FILE:    PackageRoutines.h
  4.  
  5.     COPYRIGHT:        (c) 1992-1994 Apple Computer Inc.
  6.                         All rights reserved.
  7.  
  8.     PURPOSE:        This is the header file for the interface routines in
  9.                     the PackageRoutines.c file. 
  10.                         
  11.     HISTORY:        Date            By            Description
  12.                     -----            ---            ----------------------------------
  13.                     1/20/92            Harita        Initial release
  14.                     12/20/93            dmh            Sync'd up for GX 1.0b3.
  15.                      8/28/94            dmh            Sync'd up for GX 1.0.1.
  16.  
  17. ========================================================================================== */
  18.  
  19. /* =================================== INTERFACE ROUTINES =================================== */
  20.  
  21. /* ======= StartOfPagePlot =======
  22.  
  23.     StartOfPagePlot is called to send the HPGL commands to the device for beginning a new page.
  24.     This routine issues a re-initialization command to the plotter.
  25. */
  26. OSErr StartOfPagePlot (                    //    (out)    error code                
  27. );
  28.  
  29.  
  30. /* ======= EndOfPagePlot =======
  31.  
  32.     EndOfPagePlot is called to send the HPGL commands to the device for ending the page just
  33.     plotted.  This routine issues a "Return pen to carousel…" HPGL command.
  34. */
  35. OSErr EndOfPagePlot (                //    (out)    error code                
  36. );
  37.  
  38. /* ======= SwitchPens =======
  39.  
  40.     SwitchPens is called to send the HPGL commands to the device for switching to a new pen.
  41.     The indexOfPen parameter specifies the index (in the carousel) of the new pen.
  42. */
  43. OSErr SwitchPens (                        //    (out)    error code                
  44.     long                indexOfPen);    //    (in)    index (into carousel) of the pen to switch to
  45.  
  46.  
  47.  
  48. /* ======= PlotLine =======
  49.  
  50.     PlotLine is called to send the HPGL commands to the device for plotting a line.
  51.     The line to draw is specified by the lineToDraw shape.
  52. */
  53. OSErr PlotLine (                        //    (out)    error code                    
  54.     gxShape                lineToDraw,        //    (in)    Graphics shape describing the line to draw
  55.     gxMapping            theMapping);    //    (in)    mapping use to scale points to device resolution
  56.  
  57.  
  58. /* ======= PlotRectangle =======
  59.  
  60.     PlotRectangle is called to send the HPGL commands to the device for plotting a non-filled
  61.     rectangle.  The rectangle to draw is specified by the rectToDraw shape.
  62. */
  63. OSErr PlotRectangle (                    //    (out)    error code                    
  64.     gxShape                rectToDraw,        //    (in)    Graphics shape describing the rectangle to draw
  65.     gxMapping            theMapping);    //    (in)    mapping use to scale points to device resolution
  66.  
  67.  
  68. /* ======= PlotPolygon =======
  69.  
  70.     PlotPolygon is called to send the HPGL commands to the device for plotting a non-filled
  71.     polygon.  The polygon to draw is specified by the polyToDraw shape.
  72. */
  73. OSErr PlotPolygon (                        //    (out)    error code                    
  74.     gxShape                polyToDraw,        //    (in)    Graphics shape describing the polygon to draw
  75.     gxMapping            theMapping);    //    (in)    mapping use to scale points to device resolution
  76.  
  77. OSErr    MyDumpBuffer(
  78.     short        n);
  79.